<?php
if(!empty($form['#expert_id'])){
    $info = get_expert_info($form['#expert_id'])?>
    <div class="userinfo" style="height: 70px;padding-top: 0px">
        <div class="user-content" style="margin-top:15px;">
            <p>专家姓名：<?php echo  $info->experts_name;?></p>
            <p>地址：<?php echo  $info->address;?></p>
        </div>
    </div>
<?php }?>
<div class="hp-tab-newprd">
        <ul class="j-sw-nav">
            <?php
            if(!empty($form['#expert_id'])){?>
                <li class="newprd-s1 tab-li"><a href="<?php echo base_path();?>experts_work/list?expert_id=<?php echo $form['#expert_id']?>">查看</a></li>
            <?php }else{?>
            <li class="newprd-s1 tab-li"><a href="<?php echo base_path();?>experts_work/list">查看</a></li>
            <?php } if(user_access('add experts_work')){?>
                <?php if(!empty($form['#expert_id'])){?>
                    <li class="newprd-s2 tab-li <?php if(arg(1) == 'add'){?> on <?php }?>"><a href="<?php echo base_path();?>experts_work/add?expert_id=<?php echo $form['#expert_id']?>">添加</a></li>
                <?php }else{?>
                    <li class="newprd-s2 tab-li <?php if(arg(1) == 'add'){?> on <?php }?>"><a href="<?php echo base_path();?>experts_work/add">添加</a></li>
                <?php }
            }
            if(arg(1) == 'edit' && !empty(arg(2))){?>
                <li class="newprd-s3 tab-li on"><a href="javascript:void(0)">修改</a></li>
            <?php }?>
        </ul>
    <div class="table-div" >

        <div class="small-select small-input column" style="clear:both">
            <div style="width: 500px;"><div class="form-label">日期:</div><?php print render($form['work_date']); ?></div>
        </div>
        <div class="small-select middle-select column" style="clear:both">
            <div style="width: 500px;"><div class="form-label"><span class="required">*</span>地点:</div><?php print render($form['address']); ?></div>
        </div>
        <div class="small-select middle-select column" style="clear:both">
            <div style="width: 500px;"><div class="form-label"><span class="required">*</span>标题:</div><?php print render($form['title']); ?></div>
        </div>

        <div class=" middle-select column" style="clear:both; <?php if(!empty($form['#expert_id'])){echo "display:none;";}?>">
            <div class="address-search"><div class="form-label"><span class="required">*</span>参与专家:</div>
                <?php print render($form['experts_name']); ?>
            </div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="form-label"><span class="required">*</span>内容:</div><div style="margin-left: 11.3em; "><?php print render($form['content']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="form-label"><span class="required">*</span>参与人员:</div><div style="margin-left: 11.3em; "><?php print render($form['attendees']); ?></div>
        </div>

        <div class="add-submit" style="text-align: center"><?php print render($form['submit']); ?></div>
    </div>
</div>
</div>
<?php print drupal_render_children($form); ?>

